package busquedas;

import java.sql.Time;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;

public class FiltroHoraSalida implements Filtro {

	private Time hora;
	
	public FiltroHoraSalida(Time hora){
		this.hora=hora;
	}
	
	public Criteria getRestriction(Criteria c) {
		
		return c.createCriteria("tramos").add(Restrictions.eq("horaSalida", this.hora));
	}

	
	
}
